package com.decent.ejfadmin.order.dao;

import com.decent.ejfadmin.order.dao.provider.CardSupplyOrderDaoProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

/**
 * describe:慢充批次sql管理
 *
 * @author 王元鑫
 * @date 2019/09/07
 */
@Mapper
@Repository("CardSupplyOrderDao")
public interface CardSupplyOrderDao {
    /**
     * 查询批次内慢充订单
     *
     * @param batchId     批次号
     * @param productType 运营商类型
     * @return 订单数量
     */
    @SelectProvider(type = CardSupplyOrderDaoProvider.class, method = "queryBatchStatusOrders")
    int queryBatchStatusOrders(@Param("batchId") String batchId, @Param("productType") Integer productType);

}
